#ifndef __MODULELOADER_H__
#define __MODULELOADER_H__
#include "Module.h"
#include <iostream>
//#include <fstream>

namespace modx {
	
    class LoaderException: public std::exception {
        
    public:
        LoaderException(const char* exceptionMessage) {
            message = exceptionMessage;
        }
        virtual const char* what() const throw() {
            return message;
        }
        
        const char* message;
    };

    class ModuleLoader: public Module {
        
    public:
        ModuleLoader(std::istream& streamModule);
    private:
        unsigned long getSampleInt(std::istream& is);
    };
}
#endif
